package org.example.day;

import java.util.Arrays;

/**
 * @Description: TODO
 * @Author wyatt
 * @Data 2024/05/25 23:22
 */
public class Solution2903 {

    public int[] findIndices(int[] nums, int indexDifference, int valueDifference) {
        int[] res = new int[2];
        Arrays.fill(res, -1);
        for(int i=0;i<nums.length;i++){
            for(int j=0;j<nums.length;j++){
                if((Math.abs(i - j) >= indexDifference) &&
                        (Math.abs(nums[i] - nums[j]) >= valueDifference)){
                    res[0] = i;
                    res[1] = j;
                    break;
                }
            }
        }
        return res;
    }

}
